package com.psp.web.controller.springmvc.req;


import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 重置邮箱,发送邮箱验证码
 **/
public class SendEmailVcodeParam {
	private String token; // token
	@Pattern(regexp = "^2|4$", message = "类型不正确，2 确认邮箱,4 更新邮箱")
	private String type; // 类型，2 确认邮箱,4 更新邮箱
	@NotEmpty(message = "邮箱不能为空")
	@Pattern(regexp = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$", message = "邮箱格式不正确！")
	private String email; // 邮箱地址

	public void setToken(String token) {
 		this.token = token;
	}

	public String getToken() {
 		return token;
	}

	public void setType(String type) {
 		this.type = type;
	}

	public String getType() {
 		return type;
	}

	public void setEmail(String email) {
 		this.email = email;
	}

	public String getEmail() {
 		return email;
	}

}
